package com.irdstudio.efp.esb.service.bo.resp.dxm;

import java.io.Serializable;

import com.alibaba.fastjson.annotation.JSONField;
import com.irdstudio.basic.framework.core.util.RSAUtils;

/**
 * 获取影像接口相应实体 <br>
 *
 * 0.1:caoxin:2019/3/25 10:18: 获取影像接口相应实体: <br>
 * @author caoxin
 * @since 2019/3/25 10:18
 * @date 2019/3/25 10:18
 * @version 0.1
 */
public class RespGetImageFileBean implements Serializable{

	private static final long serialVersionUID = 1L;

	// 返回代码
	@JSONField(name="RetCd")
	private String RetCd;
	// 数据内容
	@JSONField(name="DataCntnt")
	private String DataCntnt;
	// 数据类型
	@JSONField(name="DataType")
	private String DataType;

	public String getRetCd() {
		return RetCd;
	}

	public void setRetCd(String retCd) {
		RetCd = retCd;
	}

	public String getDataCntnt() {
		return DataCntnt;
	}

	public void setDataCntnt(String dataCntnt) {
		DataCntnt = dataCntnt;
	}

	public String getDataType() {
		return DataType;
	}

	public void setDataType(String dataType) {
		DataType = dataType;
	}

	public byte[] decryptData(String privateKey) throws Exception {
		return RSAUtils.decryptByPrivateKey(this.getDataCntnt(),privateKey);
	}
}
